package net.chathu.airgw.packets.chat 
{
	import net.chathu.airgw.Config;
	import net.chathu.airgw.model.Room;
	import net.chathu.airgw.packets.gw.serverpackets.NoticePacket;
	/**
	 * ...
	 * @author ze
	 */
	public class IRemConfRooms extends ChatPacket
	{
		
		public function IRemConfRooms() 
		{
			
		}
		
		override public function execute():void
		{
			var roomId:int = parseInt(data[2]);
			var room:Room = sessionData.chatData.rooms.getRoom(roomId);
			if (room) {
				sendToClient(new NoticePacket(Config.IRC_HOST, Config.GW_ECHO_NICK, "A " + room.topic + " szobából véglegesen kiléptél."));
				sessionData.chatData.rooms.remove(room);
			}
		}
		
	}

}